﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;

namespace ABC.Controllers.ViewModels.My
{
    public class MyErrorsViewModel : BaseViewModel
    {
        public int PageNumber { get; set; }

        public int PageCount { get; set; }
        
        public int PageSize { get; set; }
        
        public string Status { get; set; }

        public List<SelectListItem> ListForPageSize { get; set; }

        public List<SelectListItem> ListForStatus { get; set; }

        public System.Data.DataTable Table { get; set; }

        public MyErrorsViewModel()
        {
            ListForPageSize = new List<SelectListItem>
                                  {
                                      new SelectListItem {Text = "5", Value = "5"},
                                      new SelectListItem {Text = "15", Value = "15"},
                                      new SelectListItem {Value = "30", Text = "30"},
                                      new SelectListItem {Text = "50", Value = "50"}
                                  };

            ListForStatus = new List<SelectListItem>
                                {
                                    new SelectListItem {Text = "Все", Value = "all"},
                                    new SelectListItem {Text = "В работе", Value = "atwork"},
                                    new SelectListItem {Text = "Закрыта", Value = "completed"}
                                };
            Table = new System.Data.DataTable();
            Status = ListForStatus[1].Value;
        }
    }
}
